package com.ysynzehao.db;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * niuzehao
 * 2018/12/7 10:56.
 */
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface DataSourceName {

    DbContextHolder.DbType value() default DbContextHolder.DbType.MASTER;

}
